home *** CD-ROM | disk | FTP | other *** search
- {@@@@@@@@@@@ copyright (C) 1984 by Neil J. Rubenking @@@@@@@@@@@@@@@@@@@@@@@@
- The purchaser of these procedures and functions may include them in COMPILED
- programs freely, but may not sell or give away the source text.
-
- NOTE that any program that INCLUDEs this file MUST also include the
- type declarations contained in REGPACK.TYP and FILENAME.TYP
-
- }
- {@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@}
- procedure FileAttribute(activity : char;
- VAR the_file : filename_type ;
- VAR new_attrib, error : byte);
- var
- registers : regpack;
- begin
- the_file[length(the_file)+1] := #0;
- with registers do
- begin
- DS := seg(the_file);
- DX := ofs(the_file)+1;
- AX := ($43 shl 8);
- if UpCase(activity) = 'W' then AX := AX + 1;
- CX := new_attrib;
- MSDOS(registers);
- new_attrib := CX;
- if Flags and 1 = 1 then
- error := AX
- else error := 0;
- end;
- end;
-
- {@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@}